package com.kfm.product.mapper;

import com.kfm.common.domain.entity.ProductImages;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductImagesMapper {
    int deleteByPrimaryKey(Integer imageId);

    int insert(ProductImages record);

    int insertSelective(ProductImages record);

    ProductImages selectByPrimaryKey(Integer imageId);

    int updateByPrimaryKeySelective(ProductImages record);

    int updateByPrimaryKey(ProductImages record);

    List<ProductImages> selectByProductId(Integer productId);

    ProductImages selectDefaultImageByProductId(Integer productId);

    int cancelPrimary(Integer pid);

    int setUpPrimary(Integer id);
}